package com.yswy.backstage.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yswy.domain.entity.PackageVersion;
import com.yswy.domain.entity.user.User;
import com.yswy.domain.vo.gld.addOrUpate.PackageVersionAddOrUpdate;
import com.yswy.domain.vo.gld.search.PackageVersionSearch;

import java.util.List;

public interface PackageVersionService extends IService<PackageVersion> {
    //查询版本管理
    Page<PackageVersion> listPackageVersion(PackageVersionSearch packageVersionSearch);
    //修改或新增版本管理
    void addOrUpdatePackageVersion(PackageVersionAddOrUpdate packageVersionAddOrUpdateReqVo );
    //发布s
    void updateisRelease(Long packageVersionId , Integer isRelease);
    //版本是否存在
    Boolean isExistVersion(Long projectId ,String versionCode );
    //获取最大版本
    PackageVersion getMaxVersion(Long projectId);
    //版本列表
    List<PackageVersion> getVersionByProjectId(Long projectId);

    //删除版本管理
    void delPackageVersion(Long packageVersionId);
}
